home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Select (Limited Edition)
/
Computer Select.iso
/
pcmag
/
v11n08
/
length.bat
< prev
next >
Wrap
DOS Batch File
|
1991-10-08
|
284b
|
18 lines
@ECHO OFF
IF '%1'=='' GOTO help
IF NOT '%2'=='' GOTO setn
ECHO %1■> L.TMP
EDLIN L.TMP < LENGTH.SCR > NUL
TYPE L.TMP > LENGTH.TXT
DIR LENGTH.TXT | FIND /V "i" > L.BAT
CALL L
DEL LENGTH.TXT
DEL L.*
GOTO end
:setn
SET N=%2
GOTO end
:help
ECHO Usage: length string
:end